<?php


class CConfig
{
	public $rutalogica;
	public $rutafisica;
	public $dominio;
	public $ip;
	public $servidordatos;
	public $servidorusuario;
	public $servidorbase;
	public $servidorclave;
    public $rutalocal;



private function __construct()
  {
	  $this->rutalogica ="http://localhost/viventura";
	  $this->rutafisica= $_SERVER['DOCUMENT_ROOT']."/viventura";
      $this->rutalocal=$this->rutalogica."/MDHoteles";
	  $this->dominio="localhost";// modificable para el servidor 
	  $this->ip=$_SERVER['REMOTE_ADDR'];
	  $this->servidordatos="localhost";
	  $this->servidorusuario="root";
	  $this->servidorbase="viv2"; //nombre de la base de datos 
	  $this->servidorclave="";//clave del servidor 
	  
	  
  }

  private static $instance;
  public static function getInstance()
  {
	   if(self::$instance==null)
	   {
		self::$instance=new CConfig();   
	   }
	   return self::$instance;
	  
  }

}

//$linksite=CConfig::getInstance()->;
$rutaserver=CConfig::getInstance()->rutafisica."/MDHoteles";
//echo $rutaserver;
include_once($rutaserver."/bin/CTrabajador.php");
$userHotel=CTrabajador::getInstance();
//echo $userHotel->dataUser['FirstNamTra'];






?>